package com.example.graduation.mapper;

import com.example.graduation.entity.Shop;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.graduation.vo.ShopVo;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author xyc
 * @since 2022-02-11
 */
@Mapper
public interface ShopMapper extends BaseMapper<Shop> {

    /**
     * 查询(用户进去之后的页面)商店主页面
     *
     * @param shopId
     * @return {@link ShopVo}
     * @author xieyucan
     * CreateDate 2022/3/2 18:00
     */
    ShopVo selectShopById(Integer shopId, Integer status);


    /**
     * 查询商家的详细信息，不过我在这里，只给查询到休息或者营业中的商店，倒闭了我就不给用户查看
     *
     * @param shopId
     * @return {@link Shop}
     * @author xieyucan
     * CreateDate 2022/3/3 16:34
     */
    Shop selectShopInfo(Integer shopId);
}
